import requests

#定义接口地址
url = "http://localhost:8000/register/"

#定义参数
data = {'username':'test','password':'123'}

#发起请求
res = requests.get(url,params=data)

print(res.text)